<?php namespace Admin\Controller; 

use Admin\Model\Pics;

class PicsController extends AuthController{
	
	protected $db;
	//构造函数
	public function __init()
	{
		$this->db = new Pics;
	}
	
    //删除图集
    public function del(){
       if($this->db->remove($_GET['id'])){
       		View::ajax(array('code'=>0,'message'=>'删除成功'));
       }else{
       		View::ajax(array('code'=>1,'message'=>$this->db->getError()));
       }
	   
    }
	
	
}
